package cn.dinxian.api;


import cn.dinxian.entity.CommonResult;
import cn.dinxian.entity.MyProcessInstance;
import java.util.List;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;

import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;

/**
 * @author dingxian
 * @Title:
 * @param:
 * @return:
 * @Date 2023/2/21 21:46
 * @Description:
 */

@FeignClient(value = "activiti-provider")    
public interface RuntimeService {
  @GetMapping( "/runtime-provider/startProcess/{id}")
  public String startProcessInstanceByKey(@PathVariable("id") String id);

  /**
   * 创建流程实例
   * @param dto
   * @return
   */
  @PostMapping( "/runtime-provider/createProcessInstance")
  public CommonResult<MyProcessInstance> createProcessInstance(MyProcessInstance dto);  
  
  @PostMapping( "/runtime-provider/ProcessInstanceQuery")
  public CommonResult<MyProcessInstance> processInstanceQuery(MyProcessInstance dto);
  
  @PostMapping( "/runtime-provider/processInstanceQueryList")
  public CommonResult<List<MyProcessInstance>> processInstanceQueryList(MyProcessInstance dto);

  @PostMapping( "/runtime-provider/getvarious")
  public CommonResult<MyProcessInstance> getvarious(MyProcessInstance dto);
  
  

}
